﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="copyright.aspx.cs" Inherits="UI.system.page.config.copyright" %>
<%@ Import Namespace="Common" %>
<script src="/js/jquery.min.js"></script>
<script src="/js/common.js"></script>
<script src="/js/md5.js"></script>
<script src="/js/swfupload.js"></script>
<script src="/system/js/admin.js"></script>
<script src="/system/layui/layui.js"></script>
<link rel="stylesheet" href="/system/layui/css/layui.css">
<link rel="stylesheet" href="/system/css/iframe.css">
<div style="margin: 35px;">
	<form class="layui-form" style="padding-left:0px;">
        <div class="layui-form-item">
			<label class="layui-form-label">版权信息1</label>
			<div class="layui-input-block" style="width:300px;">
				<input id="copyright1" placeholder="请输入第1行底部版权信息" lay-verify="required" autocomplete="off" class="layui-input" value='<%=info.Copyright1.Replace("&nbsp;"," ")%>'>
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label">版权信息2</label>
			<div class="layui-input-block" style="width:300px;">
				<input id="copyright2" placeholder="请输入第2行底部版权信息" lay-verify="required" autocomplete="off" class="layui-input" value='<%=info.Copyright2.Replace("&nbsp;"," ")%>'>
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label">版权信息3</label>
            <div class="layui-input-block" style="width:500px;">
				<input id="copyright3" placeholder="请输入图片路径" lay-verify="required" autocomplete="off" class="layui-input" style="width:120px; float:left; margin-right:10px;" value='<%=info.Copyright3.Replace("&nbsp;"," ")%>'>
                <input id="copyright4" placeholder="请输入文字信息" lay-verify="required" autocomplete="off" class="layui-input" style="width:200px; float:left; margin-right:10px;"  value='<%=info.Copyright4.Replace("&nbsp;"," ")%>'>
                <input id="copyright5" placeholder="请输入联系方式" lay-verify="required" autocomplete="off" class="layui-input" style="width:120px; float:left;"  value='<%=info.Copyright5.Replace("&nbsp;"," ")%>'>
			</div>
				

		</div>
        <div class="layui-form-item">
			<label class="layui-form-label"></label>
			<div class="layui-input-inline">
				<a lay-filter="save" class="layui-btn layui-btn-small" onclick="Update_Copyright()">保存</a>
			</div>
		</div>
	</form>
</div>
<script>
    function Update_Copyright() {
        var data = {};
        data.act = "Update_Copyright";
        data.copyright1 = URLencode($("#copyright1").val());
        data.copyright2 = URLencode($("#copyright2").val());
        data.copyright3 = URLencode($("#copyright3").val());
        data.copyright4 = URLencode($("#copyright4").val());
        data.copyright5 = URLencode($("#copyright5").val());
        data.sign = GetSign(data.act);
        LayerBox.Loading();
        Ajax.Post("/tools/Admin.ashx", data, function (r) {
            LayerBox.Close.ByAll();
            var json = $.parseJSON(r);
            if (json.state) {
                LayerBox.Success("保存成功");
            }
            else {
                LayerBox.Error(json.msg);
            }
        });
    };
</script>